﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;
using Com.CMS263.DAO;

namespace Com.CMS263.BLL
{
    public class ProductBLL : BaseBLL<Product>
    {
        ProductDAO dao = new ProductDAO();
        public Product entity = new Product();
        public override Product GetModel()
        {
            return entity;
        }

        public int GetMaxId()
        {
            return dao.GetMaxId();
        }
        public IList<Product> GetListByPager(int typeid,int state,string styleid, int page, int pagesize)
        {
            return dao.GetListByPager(typeid,state,styleid,page,pagesize);
        }
        public int GetListByPager(int typeid, int state, string styleid)
        {
            return dao.GetListByPager(typeid,state,styleid);
        }
    }
}
